﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpLoadDocument.aspx.cs" Inherits="SmartSpace.Documents.UI.Pages.UpLoadDocument" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div id="div_FileLoad_content">
            <div style="height: 110px">
                <div style="float: left; width: 31%; height: 100px">UpLoad File
                    <br />
                    Please Choose File</div>
                <div style="float: right; width: 68%; height: 100px">
                    <div>
                        Name:<br />
                        <asp:FileUpload ID="loadFile" runat="server" ClientIDMode="Static" /><br />
                         Description:<textarea runat="server" id="doc_description" style="height: 53px"></textarea>
                    </div>
                </div>
            </div>
            <div style="text-align: right">
                <asp:Button runat="server" ID="btn_LoadFile" ClientIDMode="Static" Text="UpLoad" CssClass="btn" OnClientClick="return checkIsNull();" OnClick="btn_LoadFile_Click" />
                <asp:Button runat="server" ID="Button1" ClientIDMode="Static" Text="Cannel" CssClass="btn" />
            </div>
        </div>
        <script type="text/javascript">
            function checkIsNull() {
                var fileName = $("#btn_LoadFile").val();
                if (fileName == "" || fileName.length == 0) {
                    alert("Please choose one file to upload!");
                    return false;
                }
                return true;
            }
        </script>
    </form>
</body>
</html>
